﻿using Sirenix.OdinInspector;
using UnityEngine;

namespace Core.Player.DataModel
{
    [CreateAssetMenu(menuName = "DataModel/玩家属性配置")]
    public class PlayerDataModel : ScriptableObject
    {
        
    }

    [System.Serializable]
    public class PlayerData
    {
        /// <summary>
        /// 最大生命值
        /// </summary>
        public float maxHp;
        /// <summary>
        /// 攻击力
        /// </summary>
        public int attack;
        /// <summary>
        /// 防御力
        /// </summary>
        public int defense;
        /// <summary>
        /// 暴击率
        /// </summary>
        public int criticalChance;
        /// <summary>
        /// 暴击伤害
        /// </summary>
        public int criticalDamage;

        [Title("运动速度")]
        public MovementSpeed movementSpeed;
    }

    [System.Serializable]
    public class MovementSpeed
    {
        public float moveSpeed = 5f;
        public float stopMoveSmoothTime = 0.2f;
        /// <summary>
        /// 减速度
        /// </summary>
        public float moveDecelerationSpeed = 5f;
        public float rotateSpeed = 10f;
    }
}